package com.roomio.service;

import java.util.List;

import com.roomio.domain.Group;

public interface GroupInfoService {

	public abstract Group persist(Group group);

	public abstract Group findGroupInfo(Long id_);

	public abstract List<Group> findGroupInfoEntries(int firstResult,
			int sizeNo);

	public abstract int countGroupInfoes();

	public abstract List<Group> findAllGroupInfoes();

	public abstract void update(Group group);

	public abstract void remove(Long id_);

	public Group findGroupByNameAndUserName(String grouName, String userName);
	
	public void addUserToGroup(Group group, String emailIdList);

	public Group findGroupByUser(String email);
	
	public List<Group> findGroupsByOwnerName(String userName);

}